package com.itcast;

import com.itcast.Dao.UserDao;
import com.itcast.config.SpringConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AppSystemProperties {
    public static void main(String[] args) {
        ApplicationContext ctx=new AnnotationConfigApplicationContext(SpringConfig.class);
        UserDao userDao = (UserDao) ctx.getBean("userDao");
        System.out.println(userDao);
    }
}
